﻿using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace Admin2020.Core.Domain.Core
{
    /// <summary>
    /// 角色权限
    /// </summary>
    public class RolePermission:BaseEntity
    {
        /// <summary>
        /// 角色id
        /// </summary>
        [Column("roles_id")]
        public int RolesId { get; set; }

        /// <summary>
        /// 权限名称
        /// </summary>
        [Column("access_name")]
        public string AccessName { get; set; }

        /// <summary>
        /// 权限标题
        /// </summary>
        [Column("access_title")]
        public string AccessTitle { get; set; }

        /// <summary>
        /// 角色
        /// </summary>
        public Roles Role { get; set; }
    }
}
